package core

import (
	partner "gitee.com/binny_w/gin-partner"
	"go.uber.org/zap"
	"time"
)

var Rbac *partner.Rbac

func rbacInit() {
	var err error
	Rbac, err = partner.NewRbac(Config.GetString("mysql.master"), 5*time.Second, "超级管理员", "user:0")
	if err != nil {
		Logger.Panic("rbac error", zap.Error(err))
	}
}
